import service from "@/utils/http";
export const login = (params) => {
  return service({
    url: "/rest/auth/user/login",
    method: "get",
    params,
  });
};
export const logout = (params) => {
  return service({
    url: "/rest/auth/user/logout",
    method: "get",
    params,
  });
};
export const registered = (data) => {
  return service({
    url: "/rest/auth/user/register",
    method: "post",
    data,
  });
};
export const editPassword = (params) => {
  return service({
    url: "/rest/auth/user/password",
    method: "put",
    params,
  });
};
